package novel.spider.configuration;

/**
 * Created by Kau on 2016/10/31.
 */
public final class Configuration {
    /**
     * 每个线程默认可以下载最大章节数量
     */
    public static final int DEFAULT_SIZE = 100;
    /**
     * 每个线程下载某一章节允许超时次数
     */
    public static final int DEFAULT_TRY_TIMES = 3;

    /**
     * 下载后文件保存基地址
     */
    private String path;
    /**
     * 每个线程能够下载的最大章节数
     */
    private int size;
    /**
     * 每个线程尝试次数
     */
    private int tryTimes;
    public Configuration(){
        this.size = DEFAULT_SIZE;
        this.tryTimes = DEFAULT_TRY_TIMES;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTryTimes() {
        return tryTimes;
    }

    public void setTryTimes(int tryTimes) {
        this.tryTimes = tryTimes;
    }
}
